# import xadmin
# from xadmin import views
#
# from . import models
#
# class BaseSetting(object):
#     """xadmin的基本配置"""
#     enable_themes = True  # 开启主题切换功能
#     use_bootswatch = True
#
# xadmin.site.register(views.BaseAdminView, BaseSetting)
#
# class GlobalSettings(object):
#     """xadmin的全局配置"""
#     site_title = "维诺尔贸易授权管理平台"  # 设置站点标题
#     site_footer = "维诺尔贸易有限公司"  # 设置站点的页脚
#     menu_style = "accordion"  # 设置菜单折叠
#
# xadmin.site.register(views.CommAdminView, GlobalSettings)
#
#
# class SKUAdmin(object):
#     model_icon = 'fa fa-gift'
#     # list_display = ["brand", "name", "category", "price", "buy_box_price", "comments", "good_version", "color", "goods_long_desc",]
#     list_display = ["brand", "name", "asin", "category", "price", "buy_box_price", "offer_min_price", "offer", "comments", "good_version", "status", "color", "size", "country", "star", "seller_type", "haven_cart", "product_url", "small_image_url", "heavy_image_url", "local_image_url", "remark", "goods_short_desc", "goods_long_desc", "task", "get_time", "best_seller_rank", "can_sell_info", "general_info",]
#     search_fields = ['brand', "category"]
#     list_editable = ["price", "buy_box_price", "offer_min_price", "offer", "comments","seller_type","local_image_url", "remark", "goods_short_desc", "goods_long_desc", "task", "get_time", "best_seller_rank", "can_sell_info", "general_info",]
#
#
# xadmin.site.register(models.SKU, SKUAdmin)